//
//  LoginViewController.m
//  晓礼
//
//  Created by qianfeng on 15/11/10.
//  Copyright © 2015年 qianfeng. All rights reserved.
//

#import "LoginViewController.h"
#import "RegistViewController.h"
@interface LoginViewController ()
@property (weak, nonatomic) IBOutlet UITextField *phoneText;
@property (weak, nonatomic) IBOutlet UITextField *pwdText;

@end

@implementation LoginViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    [self createNav];
    [_phoneText becomeFirstResponder];
}

-(void)createNav
{
    UILabel *title=[[UILabel alloc]initWithFrame:CGRectMake(180, 0, 100, 40)];
    title.text=@"登陆账号";
    title.textAlignment=NSTextAlignmentCenter;
    title.textColor=[UIColor whiteColor];
    self.navigationItem.titleView=title;
    
    self.navigationController.navigationBar.barTintColor = [UIColor colorWithRed:0.743 green:0.007 blue:0.030 alpha:1.000];
    self.navigationController.navigationBar.tintColor=[UIColor whiteColor];
}
- (IBAction)registClick:(id)sender {
    RegistViewController *regist=[[RegistViewController alloc] init];
    [self.navigationController pushViewController:regist animated:YES];
}
- (IBAction)loginClick:(id)sender {
    
    
    
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
